package com.groupbuying.redpacket.service;

import com.groupbuying.redpacket.domain.RedPacketRuleDO;
import com.groupbuying.redpacket.domain.RedPacketTaskDO;

import java.util.List;

/**
 * @Author: mayunfei
 * @Date: Create in 8:51 2019/11/13
 * @tar:
 */
public interface RuleService {
    /**
     * 根据TaskId查询rule
     */
    List<RedPacketRuleDO> rulebyTaskId(String taskId);
    /**
     *批量添加
     */
    int insertBatch(RedPacketTaskDO redPacketTaskDO, List<RedPacketRuleDO> RedPacketRuleDO);
    /**
     *根据taskId物理删除Rule
     */
    int deleteByTaskId(String taskId);
}
